package com.jxzn.locust.model;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "sys_role_resource")
public class RoleResource extends AbstractModel {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    /** 角色id */
    Integer roleId;
    /** 资源id */
    String resourceUuid;

    public RoleResource(Integer roleId, String resourceUuid) {
        super();
        this.roleId = roleId;
        this.resourceUuid = resourceUuid;
    }

    public RoleResource() {
        super();
    }

}
